package com.fly.show.notepad.action;
//CutAction.java

import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.SWT;

import com.fly.show.notepad.MainWindow;

public class CutAction extends Action
{
    public CutAction()
    {
        super();
        setText("剪切(&C)");
        setToolTipText("剪切");
        setAccelerator(SWT.CTRL + 'X');
        setImageDescriptor(ImageDescriptor.createFromFile(NewAction.class, "icons\\cut.gif"));
    }
    
    @Override
    public void run()
    {
        MainWindow.getApp().getContent().cut();
    }
}